package com.houg.testuserapi.service.fallback;

import com.houg.testuserapi.common.constants.ResultCode;
import com.houg.testuserapi.model.vo.OrderVo;
import com.houg.testuserapi.service.GetOrderService;
import org.springframework.stereotype.Component;

/**
 * @author NALHOUG
 */
@Component
public class OrderServiceFallBackImpl implements GetOrderService {

    private String msg = "服务器开小差，再试试看~";


    @Override
    public OrderVo selectUserOrder(String userId) {
        OrderVo orderVo = new OrderVo();
        orderVo.setName(msg);
        return orderVo;
    }

    @Override
    public String getPay(String orderId) {
        return msg;
    }

    @Override
    public String closeOrder(String userId, String orderId) {
        return msg;
    }
}
